/*
 * Project:     My Project Work, Copyright (C) 2011
 * Created at:  31.07.2011
 */
package de.myprojectwork.common.util;

import de.myprojectwork.model.ConfigurationModel;

/**
 * Beinhaltet die Konfiguration der Anwendung.
 * Die Daten werden entweder aus der Datenbank, oder aus diesem Enum gelesen.
 * @see ConfigurationModel
 * 
 * @author Chris Holdschuh
 */
public enum ConfigurationEnum {
    /* 
     * HINWEIS: 
     * Wenn Value = NULL ist, wird der Wert aus der DB gelesen.
     */
    VERSION                     ("version", "0.0.1"),
    DB_URL                      ("db.url", "jdbc:h2:file:src/resources/myprojectwork-db"),
    DB_USER                     ("db.user", "admin"),
    DB_PASSWORD                 ("db.password", "__mpw!"),
    DB_FILE_URL                 ("ub.file.url", "src/resources/myprojectwork-db.h2.db"),
    DB_TRACE_FILE_URL           ("ub.file.url", "src/resources/myprojectwork-db.trace.db");
    
    private String key;
    private String value;

    private ConfigurationEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }
    
    public String getKey() {
        return key;
    }
    
    public String getValue() {
        return value;
    }
}
